home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: compilers
- Date: Sat, 16 Mar 96 01:42:34 GMT
- Organization: none
- Message-ID: <826940554snz@genesis.demon.co.uk>
- References: <4iburm$aps@airdmhor.gen.nz> <DoBvF6.GG5@iquest.net>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <DoBvF6.GG5@iquest.net> dlmiller@iquest.net "Doug Miller" writes:
-
- >gumboot@airdmhor.gen.nz (Simon Hosie) wrote:
- >+ Does anyone know of a compiler that can take
- >+
- >+for (;;)
- >+{
- >+ Stuff(1);
- >+ if (Cond)
- >+ break;
- >+ Stuff(2);
- >+}
- >+
- >+ and make
- >+
- >+goto EntryPoint;
- >+do
- >+{
- >+ Stuff(2);
- >+EntryPoint:
- >+ Stuff(1);
- >+} while (Cond);
- >
- >A possibly more important question is why you would want it to, since the first
- > form is vastly
- >more comprehensible.
-
- And any reasonable optimising compiler will perform whatever loop
- transformations are necessary to generate efficient code for the first
- version. Maybe that was the question.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-